package com.xmh.ssm.action;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.xmh.ssm.dao.TestDao;
import com.xmh.ssm.dao.TestXmlDao;


@Controller
@RequestMapping("/test")
public class TestAction {

	private final Logger logger = Logger.getLogger(TestAction.class);

//	@Resource(name = "testDaoImple")
	private TestDao TestDao = null;
	
//	@Resource
	private TestXmlDao TestxmlDao = null;

	@RequestMapping("/test")
	@ResponseBody
	public List<Map<String, Object>> test() {
		return TestDao.selectAll();
	}
	
	@RequestMapping("/test2")
	@ResponseBody
	public List<Map<String, Object>> test2() {
		return TestxmlDao.selectAll();
	}

}
